#ifndef REDIS_ADAPTOR_H
#define REDIS_ADAPTOR_H

#include <sdfs/redis/redisConnector.h>
#include <vector>

using namespace muduo::net;

namespace sdfs
{
namespace redis
{
typedef std::vector<RedisConnector> RedisConnectorPool;

class RedisAdaptor
{
public:
	RedisAdaptor(EventLoop *loop, const char* ip, int port, int nConn)
		:connCount_(nConn)
	{
		connectors_.resize(nConnMax);
		for (int i = 0; i < connMin_; ++i)
		{
			RedisAdaptor adaptor(loop, ip, port);
			connectors_.push_back(adaptor);
		}
	}
	~RedisAdaptor()
	{

	}



	/* data */
private:
	RedisConnectorPool connectors_;
	int connCount_;
};

}
}
#endif